home *** CD-ROM | disk | FTP | other *** search
-
- {$m 8096,0,2048}
-
- uses dos;
-
- var
- p : dirstr;
- f : namestr;
- e : extstr;
-
- begin
- writeln ('E.O.S. compiler v1.0 [wlk/abc]');
- if paramstr(1)='' then begin
- writeln ('eosc <filename> -param ');
- writeln (' -n normal compile with no music');
- writeln (' -m with da music compiling');
- writeln (' -d with da debugger compiler ');
- halt(0);
- end;
- fsplit (paramstr(1),p,f,e);
- if paramstr(2)='-n' then
- begin
- SwapVectors;
- exec ('c:\ta\tasm.exe',f+'.asm');
- exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite '+f+','+f+' /3/x');
- SwapVectors;
- end else
- if paramstr(2)='-m' then
- begin
- SwapVectors;
- exec ('c:\ta\tasm.exe',f+'.asm');
- exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eos ..\resource\diamond '+f+','+f+' /3/x');
- SwapVectors;
- end else
- if paramstr(2)='-d' then
- begin
- SwapVectors;
- exec ('c:\ta\tasm.exe',f+'.asm');
- exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite ..\resource\debug '+f+','+f+' /3/x');
- SwapVectors;
- end else
- if paramstr(2)='' then
- begin
- SwapVectors;
- exec ('c:\ta\tasm.exe',f+'.asm');
- exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite '+f+','+f+' /3/x');
- SwapVectors;
- end;
- end.
-
-
-